package neo.tetris.bean.conf;

import neo.sourceEngine.bean.annotation.ResourceJson;
import neo.sourceEngine.bean.annotation.ResourceJsonPrimayKey;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
@ResourceJson(file = "WEB-INF/conf/character")
public class CharacterConf {
	static public final int TYPE_HERO = 1;

	static public final int TYPE_SOLDIER = 2;

	@ResourceJsonPrimayKey
	public int confId;

	public int width;

	public int height;

	public int hp;
	
	/**
	 * 血量回复
	 */
	public int hpRecover;

	/**
	 * 每秒移动速度
	 */
	public int moveSpeed;
	
	/**
	 * 移动点回复
	 */
	public int moveRecover;
	
	public int attackDamage;
	
	public int attackRock;
	
	/**
	 * 攻击移动速度，近战以int.max来填补
	 */
	public int attackMove;

	public int attackRange;

	public int attackCrit;

	public int attackInterval;
	
	/**
	 * 技能ID
	 */
	public int[] skillIds;
	
	/**
	 * 技能值
	 */
	public int abilityValue;

	/**
	 * 技能加成
	 */
	public int abilityPower;
	
	/**
	 * 技能抵抗
	 */
	public int abilityResist;

	/**
	 * 技能回复
	 */
	public int abilityPointRecover;
	
	/**
	 * 类型
	 */
	public int type;
	
	public int armor;
	
	public CharacterConf() {
		super();
		
		skillIds = new int[0];
	}
}
